projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
220eb45
)
GtkListBox: Consider width of filtered rows
author
Alexander Larsson
<alexl@redhat.com>
Thu, 13 Jun 2013 08:47:52 +0000
(10:47 +0200)
committer
Alexander Larsson
<alexl@redhat.com>
Thu, 13 Jun 2013 10:17:08 +0000
(12:17 +0200)
Without this lists keep shrinking in width as they are filtered, whic
looks really bad.
gtk/gtklistbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtklistbox.c
b/gtk/gtklistbox.c
index bd9a852b94185f36f4168afb0240d3516d2f9001..cccc04fd44e77f4fe9bbfb806488be446b85ca1e 100644
(file)
--- a/
gtk/gtklistbox.c
+++ b/
gtk/gtklistbox.c
@@
-1867,7
+1867,10
@@
gtk_list_box_real_get_preferred_width (GtkWidget* widget, gint* minimum_width_ou
iter = g_sequence_iter_next (iter))
{
row = g_sequence_get (iter);
- if (!row_is_visible (row))
+
+ /* We *do* take visible but filtered rows into account here so that the list
+ width doesn't change during filtering */
+ if (!gtk_widget_get_visible (GTK_WIDGET (row)))
continue;
gtk_widget_get_preferred_width (GTK_WIDGET (row), &row_min, &row_nat);